# Contributor:
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgtop
pkgver=2.41.3
pkgrel=0
pkgdesc="GNOME top library"
url="https://www.gnome.org/"
arch="all"
license="LGPL-2.1-or-later"
options="suid !check" # No testsuite
makedepends="intltool linux-headers glib-dev libxau-dev libx11-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-tools"
source="https://download.gnome.org/sources/libgtop/${pkgver%.*}/libgtop-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-static=no
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

tools() {
	pkgdesc="$pkgdesc SETUID server for unsupported platforms"

	amove usr/libexec
}

sha512sums="
17eca4214229b7b4e40ef572ea61feb60829f3db7870db2c474a813e59c4723d67da8e1c2d22be6ab3b19a6beeab05edbc4833a115196c2288f9a7a0de3d6ef2  libgtop-2.41.3.tar.xz
"
